{temp('kefu/head')}
</head>
<body>
	<div class="pd-20">
		<div class="form form-horizontal" id="form-article-add">
			<div class="row cl">
				<label class="form-label col-2">邮箱:</label>
				<div class="formControls col-4">
					<input type="text" class="input-text" value="{$r['email']}" id="email" name="email">
				</div>
			</div>
			<!-- <div class="row cl">
				<label class="form-label col-2">套餐标准:</label>
				<div class="formControls col-2"> 
					<input type="text" class="input-text" value="{$r['title']}" id="jf" name="jf"> 
				</div>
			</div> -->
			<div class="row cl">
				<div class="col-10 col-offset-2">
					<button onClick="tj({$r['uid']});" class="btn btn-primary radius" type="submit">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>
					<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	function tj(uid){
		var email = document.getElementById('email').value;
		$.post('{$_url}/kefu/?act=user&met=qy_u',{uid:uid,email:email},function(data){
			if(data == 'cg'){
				layer.alert('修改成功');
				setTimeout(function(){parent.location.reload();},800);return ;
			}else if(data == 'error'){
				layer.alert('修改失败');return ;
			}
		});
	}
	</script>
	{temp('kefu/foot')}
</body>
</html>